package com.jbl.ma.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jbl
 * @since 2020-12-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ma_talk_record")
@ApiModel(value="TalkRecord对象", description="")
public class TalkRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息编号")
      @TableId(value = "msg_id", type = IdType.ASSIGN_ID)
    private String msgId;

    @ApiModelProperty(value = "咨询人编号:外键")
    private String teacherNumber;

    @ApiModelProperty(value = "[咨询者-0，管理回复-1] 就是谁发的")
    private Integer role;

    @ApiModelProperty(value = "[文本-text-0,图片-image-1]")
    private Integer contentType;

    @ApiModelProperty(value = "文本内容")
    private String content;

    @ApiModelProperty(value = "图片/oss")
    @TableField("file_Url")
    private String fileUrl;

    @TableField(fill = FieldFill.INSERT) //插入操作时自动更新该字段
    private Date gmtCreate;

    @ApiModelProperty(value = "0-未读 1-管理员读 2-用户读")
    @TableField("is_read")
    private Integer isRead;


}
